package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongAiPointRowMapper implements RowMapper<NanDongAiPoint> {
    @Override
    public NanDongAiPoint mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongAiPoint nd = new NanDongAiPoint();
        nd.setId(resultSet.getInt("id"));
        nd.setAi_type(resultSet.getString("ai_type"));
        nd.setAi_module(resultSet.getString("ai_module"));
        nd.setCommittee(resultSet.getString("committee"));
        nd.setAdress(resultSet.getString("adress"));
        nd.setSite(resultSet.getString("site"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
